package com.jdbc.util;

public class TimePlanUtil {
	public static String[] weekday = {"星期一", "星期二", "星期三", "星期四", "星期五"};
	public static String[] timeFrame = {"&nbsp&nbsp8:05~&nbsp&nbsp9:50", "10:15~12:00", "13:35~15:20", "15:45~17:30", "18:30~20:45"};

	public static String transform(String time) {
		int timeValue_decade = Integer.parseInt(time.substring(0, 1));
		int timeValue_units = Integer.parseInt(time.substring(1));

		return weekday[timeValue_decade - 1] + timeFrame[timeValue_units - 1];
	}
}